<script lang="ts" setup>
import {getCurrentInstance, onMounted } from 'vue';
import Progress from "../components/TopProgress.vue"
console.log('ATG')
// 获取全局方法，还是推荐直接导入吧，这样更清晰
const instance = getCurrentInstance();
const Util = instance?.appContext.config.globalProperties.$utils;
console.log(Util); // 输出: Hello, Global!
console.log(Util.getText())
const arr=[1,2,3,4,5]
const [a,b,...e]=arr
console.log(a,b,e) // 输出: 1 2 [3, 4, 5]
const [d,r,...f]=e
console.log(d,r,f) // 输出: 3 4 []
console.log(this) 
onMounted(()=>{
    console.log(this);
})
var art = 10;
function attrt(this:any,name:string, age:number){
    // 输出: 10
    console.log(this,name,age)
}
attrt.call(this,'2',14);
</script>
<template>
    <div><h3>ATG</h3></div>
    <Progress></Progress>
</template>